package org.ushio.nchu_22201402.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.ushio.common_module.entity.MyPackage;
import org.ushio.common_module.entity.Package_Sale;
import org.ushio.nchu_22201402.Foen.Admin_PackageFoen;
import org.ushio.nchu_22201402.service.Package_SaleService0;


import java.util.List;

@RestController
@CrossOrigin
public class Package_SaleController {
@Autowired
    private Package_SaleService0 package_saleService0;
@Autowired
    private Admin_PackageFoen adminPackageFoen;
@GetMapping(value ="listAll")
    public List<Package_Sale> listAll(){
    return package_saleService0.listAll();
}

@GetMapping(value = "/ListAllPackages")
    public List<MyPackage> getAllPackages(){
    return adminPackageFoen.getAllPackages();
}



}
